/**
 * @author lscl
 * @version 1.0
 * @intro: 标准的JavaBean
 */
public class Phone {

    private String brand;
    private int price;


    // alt+insert生成标准JavaBean
    public Phone() {
    }

    public Phone(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

/*
    public Phone(){}

    public Phone(String brand,int price){
        this.brand=brand;
        this.price=price;
    }

    public void setBrand(String brand){
        this.brand=brand;
    }

    public void setPrice(int price){
        this.price=price;
    }

    public String getBrand(){
        return brand;
    }

    public int getPrice(){
        return price;
    }
*/

}
